import request from '@/utils/request'

export function listInfo() {
	return request({
		url: '/wx/module/address/list',
		method: 'get'
	})
}

export function saveAddressIinfo(data) {
	return request({
		url: '/wx/module/add/address',
		method: 'post',
		data: data
	})
}

export function updateAddressIinfo(data) {
	return request({
		url: '/wx/module/edit/address',
		method: 'post',
		data: data
	})
}
export function addressInfo(id) {
	return request({
		url: '/wx/module/address/info',
		method: 'get',
		params: {
			id: id
		}
	})
}